﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000ABB RID: 2747
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MakeDrinkScRsp : IMessage<MakeDrinkScRsp>, IMessage, IEquatable<MakeDrinkScRsp>, IDeepCloneable<MakeDrinkScRsp>, IBufferMessage
	{
		// Token: 0x170022A6 RID: 8870
		// (get) Token: 0x06007AD8 RID: 31448 RVA: 0x00148239 File Offset: 0x00146439
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MakeDrinkScRsp> Parser
		{
			get
			{
				return MakeDrinkScRsp._parser;
			}
		}

		// Token: 0x170022A7 RID: 8871
		// (get) Token: 0x06007AD9 RID: 31449 RVA: 0x00148240 File Offset: 0x00146440
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MakeDrinkScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170022A8 RID: 8872
		// (get) Token: 0x06007ADA RID: 31450 RVA: 0x00148252 File Offset: 0x00146452
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MakeDrinkScRsp.Descriptor;
			}
		}

		// Token: 0x06007ADB RID: 31451 RVA: 0x00148259 File Offset: 0x00146459
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MakeDrinkScRsp()
		{
		}

		// Token: 0x06007ADC RID: 31452 RVA: 0x00148261 File Offset: 0x00146461
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MakeDrinkScRsp(MakeDrinkScRsp other) : this()
		{
			this.isSucc_ = other.isSucc_;
			this.retcode_ = other.retcode_;
			this.nextChatId_ = other.nextChatId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007ADD RID: 31453 RVA: 0x0014829E File Offset: 0x0014649E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MakeDrinkScRsp Clone()
		{
			return new MakeDrinkScRsp(this);
		}

		// Token: 0x170022A9 RID: 8873
		// (get) Token: 0x06007ADE RID: 31454 RVA: 0x001482A6 File Offset: 0x001464A6
		// (set) Token: 0x06007ADF RID: 31455 RVA: 0x001482AE File Offset: 0x001464AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSucc
		{
			get
			{
				return this.isSucc_;
			}
			set
			{
				this.isSucc_ = value;
			}
		}

		// Token: 0x170022AA RID: 8874
		// (get) Token: 0x06007AE0 RID: 31456 RVA: 0x001482B7 File Offset: 0x001464B7
		// (set) Token: 0x06007AE1 RID: 31457 RVA: 0x001482BF File Offset: 0x001464BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170022AB RID: 8875
		// (get) Token: 0x06007AE2 RID: 31458 RVA: 0x001482C8 File Offset: 0x001464C8
		// (set) Token: 0x06007AE3 RID: 31459 RVA: 0x001482D0 File Offset: 0x001464D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NextChatId
		{
			get
			{
				return this.nextChatId_;
			}
			set
			{
				this.nextChatId_ = value;
			}
		}

		// Token: 0x06007AE4 RID: 31460 RVA: 0x001482D9 File Offset: 0x001464D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MakeDrinkScRsp);
		}

		// Token: 0x06007AE5 RID: 31461 RVA: 0x001482E8 File Offset: 0x001464E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MakeDrinkScRsp other)
		{
			return other != null && (other == this || (this.IsSucc == other.IsSucc && this.Retcode == other.Retcode && this.NextChatId == other.NextChatId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007AE6 RID: 31462 RVA: 0x00148344 File Offset: 0x00146544
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsSucc)
			{
				num ^= this.IsSucc.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.NextChatId != 0U)
			{
				num ^= this.NextChatId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007AE7 RID: 31463 RVA: 0x001483B5 File Offset: 0x001465B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007AE8 RID: 31464 RVA: 0x001483BD File Offset: 0x001465BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007AE9 RID: 31465 RVA: 0x001483C8 File Offset: 0x001465C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsSucc)
			{
				output.WriteRawTag(32);
				output.WriteBool(this.IsSucc);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.NextChatId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.NextChatId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007AEA RID: 31466 RVA: 0x00148440 File Offset: 0x00146640
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsSucc)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.NextChatId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NextChatId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007AEB RID: 31467 RVA: 0x001484A4 File Offset: 0x001466A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MakeDrinkScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsSucc)
			{
				this.IsSucc = other.IsSucc;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.NextChatId != 0U)
			{
				this.NextChatId = other.NextChatId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007AEC RID: 31468 RVA: 0x00148508 File Offset: 0x00146708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007AED RID: 31469 RVA: 0x00148514 File Offset: 0x00146714
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 40U)
					{
						if (num != 56U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.NextChatId = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.IsSucc = input.ReadBool();
				}
			}
		}

		// Token: 0x04002EF5 RID: 12021
		private static readonly MessageParser<MakeDrinkScRsp> _parser = new MessageParser<MakeDrinkScRsp>(() => new MakeDrinkScRsp());

		// Token: 0x04002EF6 RID: 12022
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002EF7 RID: 12023
		public const int IsSuccFieldNumber = 4;

		// Token: 0x04002EF8 RID: 12024
		private bool isSucc_;

		// Token: 0x04002EF9 RID: 12025
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04002EFA RID: 12026
		private uint retcode_;

		// Token: 0x04002EFB RID: 12027
		public const int NextChatIdFieldNumber = 7;

		// Token: 0x04002EFC RID: 12028
		private uint nextChatId_;
	}
}
